package com.mjh.zhujianju.dao.agency;

import com.livew.framework.base.dao.BaseMapper;
import com.mjh.zhujianju.model.agency.PolicyEO;
import com.mjh.zhujianju.vo.agency.PolicyVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PolicyMapper extends BaseMapper<PolicyEO> {

    /**
     * 查询最新动态
     * @return
     */
    List<PolicyVO> queryPolicyList(@Param("type")String type);

    /**
     * 根据id查询政策详细信息
     * @param id
     * @return
     */
    PolicyVO queryPolicyInfo(Long id);
}